var globalScope= this;
TestCase
(
	'org.puremvc.js.help.GlobaliseTest'
,	{
	
		/**
		 * Ensure that all core actors have been exposed to the global
		 * scope to facilitate unit testing on compiled code.
		 * 
		 * @see Tests/org/puremvc/js/help/globalise.js
		 */
		testMvcActorsExported: function ()
		{
			var actorNames=
			[
				'SimpleCommand'
			,	'MacroCommand'
			,	'Facade'
			,	'Mediator'
			,	'Notification'
			,	'Notifier'
			,	'Observer'
			,	'Proxy'
			,	'Model'
			,	'View'
			,	'Controller'
			];
			
			
			for (var i= 0, n= actorNames.length; i < n; i++)
			{
				var name= actorNames[i]
				,	Actor=globalScope[name];
				
				assertInstanceOf('The mvc actor ' + name + ' has been exported to the global scope', Function, Actor)
			}
		}
		
		/**
		 * Ensure that all ancillary classes have been exported to the global scope prior to
		 * unit testing.
		 */
	,	testMvcAdaptersExported: function ()
		{
			var adapterNames=
			[
				'SimpleCommandAdapter'
			,	'MacroCommandAdapter'
			,	'FacadeAdapter'
			,	'MediatorAdapter'
			,	'NotifierAdapter'
			,	'ProxyAdapter'
			]
			
			for (var i= 0, n= adapterNames.length; i < n; i++)
			{
				var name= adapterNames[i]
				,	Actor=globalScope[name];
				
				assertInstanceOf('The mvc actor ' + name + ' has been exported to the global scope', Function, Actor)
			}			
		}
	}
);
